
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<div style="width: 100% ;height: 45px;border: 1px;display: flex;align-items: center;justify-content: space-evenly;">
    <p>教务学生职工管理系统</p>
<c:if test="${not empty loginState}">
    <a href="/index.do">首页</a>
</c:if>

    <c:if test="${empty loginState}">
        <span style="color:red;">未登录</span>
    </c:if>
    <c:if test="${not empty loginState}">
    <p>姓名：<span style="color:red;">${loginState.name}</span></p>
        <c:if test="${loginState.role == 1}">
            <span style="color: pink">学生(Student)</span>
        </c:if>
        <c:if test="${loginState.role == 2}">
            <span style="color: pink">教师(Teacher)</span>
        </c:if>
        <c:if test="${loginState.role == 0}">
            <span style="color: pink">管理员(Administrator)</span>
        </c:if>
    <a href="/index/logout.do">退出登录</a>
    </c:if>
</div>
<hr>

